﻿using System;
using System.Linq;

    class InTheCircleOutOfTheRect
    {
        static void Main(string[] args)
        {
           int xP = 3;
           int yP = 1;
           int xK = 1;
           int yK = 1;
           int r = 3;
           int hypotenuse = (int)Math.Sqrt((xP - xK) * (xP - xK) + (yP - yK) * (yP - yK));
           int xRect = -1;
           int yRect = 1;
           int xRect1 = 5;
           int yRect1 = -1;
           bool isInTheCircle = (hypotenuse <= r);
           if (isInTheCircle)
           {
           }
           else
           {
           }
               Console.WriteLine("The point  is in the circle: " + isInTheCircle);
           bool isOutOfTheRect = ((xP <= xRect) || (xP >= xRect1) || (yP >= yRect) || (yP <= yRect1));
           if (isOutOfTheRect)
           {
           }
           else
           { 
           }
           Console.WriteLine("The point  is out of the rectangle: " + isOutOfTheRect);
        }
    }

